package com.learn.algorithm.utils;

public class Utils {

    public static void printBinaryDigit(int number) {
        for (int i = 31; i >= 0; i--) {
            System.out.print(((number & (1 << i)) == 0 ? "0" : "1"));
        }
        System.out.println();
    }

    public static void main(String[] args) {
        printBinaryDigit(-5);
    }
}
